<?php
/**
 * Redis
 *
 * @category Jdcloud
 * @package  DragonJd\Redis
 * @author   Jdcloud <jdcloud-api@jd.com>
 * @license  Apache-2.0 http://www.apache.org/licenses/LICENSE-2.0
 * @link     https://www.jdcloud.com/help/faq
 */

namespace DragonJd\Redis;

use DragonJd\JdCloudClient;
use DragonJd\Api\Service;
use DragonJd\Api\DocModel;
use DragonJd\Api\ApiProvider;
use DragonJd\PresignUrlMiddleware;

/**
 * Client used to interact with redis.
 *
 * @method \DragonJd\Result describeAvailableRegion(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeAvailableRegionAsync(array $args = [])
 * @method \DragonJd\Result describeAvailableResource(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeAvailableResourceAsync(array $args = [])
 * @method \DragonJd\Result describeAvailableResource2(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeAvailableResource2Async(array $args = [])
 * @method \DragonJd\Result describeCacheInstances(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeCacheInstancesAsync(array $args = [])
 * @method \DragonJd\Result createCacheInstance(array $args = [])
 * @method \GuzzleHttp\Promise\Promise createCacheInstanceAsync(array $args = [])
 * @method \DragonJd\Result describeCacheInstance(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeCacheInstanceAsync(array $args = [])
 * @method \DragonJd\Result modifyCacheInstanceAttribute(array $args = [])
 * @method \GuzzleHttp\Promise\Promise modifyCacheInstanceAttributeAsync(array $args = [])
 * @method \DragonJd\Result deleteCacheInstance(array $args = [])
 * @method \GuzzleHttp\Promise\Promise deleteCacheInstanceAsync(array $args = [])
 * @method \DragonJd\Result modifyCacheInstanceClass(array $args = [])
 * @method \GuzzleHttp\Promise\Promise modifyCacheInstanceClassAsync(array $args = [])
 * @method \DragonJd\Result describeResizeModeIpTimeInfo(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeResizeModeIpTimeInfoAsync(array $args = [])
 * @method \DragonJd\Result resetCacheInstancePassword(array $args = [])
 * @method \GuzzleHttp\Promise\Promise resetCacheInstancePasswordAsync(array $args = [])
 * @method \DragonJd\Result describeInstanceConfig(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeInstanceConfigAsync(array $args = [])
 * @method \DragonJd\Result modifyInstanceConfig(array $args = [])
 * @method \GuzzleHttp\Promise\Promise modifyInstanceConfigAsync(array $args = [])
 * @method \DragonJd\Result describeAnalysisTime(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeAnalysisTimeAsync(array $args = [])
 * @method \DragonJd\Result modifyAnalysisTime(array $args = [])
 * @method \GuzzleHttp\Promise\Promise modifyAnalysisTimeAsync(array $args = [])
 * @method \DragonJd\Result describeCacheAnalysisList(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeCacheAnalysisListAsync(array $args = [])
 * @method \DragonJd\Result createCacheAnalysis(array $args = [])
 * @method \GuzzleHttp\Promise\Promise createCacheAnalysisAsync(array $args = [])
 * @method \DragonJd\Result describeCacheAnalysisResult(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeCacheAnalysisResultAsync(array $args = [])
 * @method \DragonJd\Result describeClientList(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeClientListAsync(array $args = [])
 * @method \DragonJd\Result describeClientIpDetail(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeClientIpDetailAsync(array $args = [])
 * @method \DragonJd\Result describeBackups(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeBackupsAsync(array $args = [])
 * @method \DragonJd\Result createBackup(array $args = [])
 * @method \GuzzleHttp\Promise\Promise createBackupAsync(array $args = [])
 * @method \DragonJd\Result describeBackupPolicy(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeBackupPolicyAsync(array $args = [])
 * @method \DragonJd\Result modifyBackupPolicy(array $args = [])
 * @method \GuzzleHttp\Promise\Promise modifyBackupPolicyAsync(array $args = [])
 * @method \DragonJd\Result restoreInstance(array $args = [])
 * @method \GuzzleHttp\Promise\Promise restoreInstanceAsync(array $args = [])
 * @method \DragonJd\Result describeDownloadUrl(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeDownloadUrlAsync(array $args = [])
 * @method \DragonJd\Result describeClusterInfo(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeClusterInfoAsync(array $args = [])
 * @method \DragonJd\Result describeIpWhiteList(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeIpWhiteListAsync(array $args = [])
 * @method \DragonJd\Result modifyIpWhiteList(array $args = [])
 * @method \GuzzleHttp\Promise\Promise modifyIpWhiteListAsync(array $args = [])
 * @method \DragonJd\Result describeSlowLog(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeSlowLogAsync(array $args = [])
 * @method \DragonJd\Result describeTaskProgressList(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeTaskProgressListAsync(array $args = [])
 * @method \DragonJd\Result getDisableCommands(array $args = [])
 * @method \GuzzleHttp\Promise\Promise getDisableCommandsAsync(array $args = [])
 * @method \DragonJd\Result setDisableCommands(array $args = [])
 * @method \GuzzleHttp\Promise\Promise setDisableCommandsAsync(array $args = [])
 * @method \DragonJd\Result describeAccounts(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeAccountsAsync(array $args = [])
 * @method \DragonJd\Result createAccount(array $args = [])
 * @method \GuzzleHttp\Promise\Promise createAccountAsync(array $args = [])
 * @method \DragonJd\Result modifyAccount(array $args = [])
 * @method \GuzzleHttp\Promise\Promise modifyAccountAsync(array $args = [])
 * @method \DragonJd\Result deleteAccount(array $args = [])
 * @method \GuzzleHttp\Promise\Promise deleteAccountAsync(array $args = [])
 * @method \DragonJd\Result modifyAccounts(array $args = [])
 * @method \GuzzleHttp\Promise\Promise modifyAccountsAsync(array $args = [])
 * @method \DragonJd\Result startClearData(array $args = [])
 * @method \GuzzleHttp\Promise\Promise startClearDataAsync(array $args = [])
 * @method \DragonJd\Result stopClearData(array $args = [])
 * @method \GuzzleHttp\Promise\Promise stopClearDataAsync(array $args = [])
 * @method \DragonJd\Result describeClearData(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeClearDataAsync(array $args = [])
 * @method \DragonJd\Result describeBigKeyList(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeBigKeyListAsync(array $args = [])
 * @method \DragonJd\Result createBigKeyAnalysis(array $args = [])
 * @method \GuzzleHttp\Promise\Promise createBigKeyAnalysisAsync(array $args = [])
 * @method \DragonJd\Result describeBigKeyDetail(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeBigKeyDetailAsync(array $args = [])
 * @method \DragonJd\Result describeBigKeyAnalysisTime(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeBigKeyAnalysisTimeAsync(array $args = [])
 * @method \DragonJd\Result modifyBigKeyAnalysisTime(array $args = [])
 * @method \GuzzleHttp\Promise\Promise modifyBigKeyAnalysisTimeAsync(array $args = [])
 * @method \DragonJd\Result stopCacheAnalysis(array $args = [])
 * @method \GuzzleHttp\Promise\Promise stopCacheAnalysisAsync(array $args = [])
 * @method \DragonJd\Result describeAnalysisThreshold(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeAnalysisThresholdAsync(array $args = [])
 * @method \DragonJd\Result modifyAnalysisThreshold(array $args = [])
 * @method \GuzzleHttp\Promise\Promise modifyAnalysisThresholdAsync(array $args = [])
 * @method \DragonJd\Result createBigKeyAnalysis2(array $args = [])
 * @method \GuzzleHttp\Promise\Promise createBigKeyAnalysis2Async(array $args = [])
 * @method \DragonJd\Result describeBigKeyList2(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeBigKeyList2Async(array $args = [])
 * @method \DragonJd\Result describeBigKeyDetail2(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeBigKeyDetail2Async(array $args = [])
 * @method \DragonJd\Result describeBigKeyAnalysisTime2(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeBigKeyAnalysisTime2Async(array $args = [])
 * @method \DragonJd\Result modifyBigKeyAnalysisTime2(array $args = [])
 * @method \GuzzleHttp\Promise\Promise modifyBigKeyAnalysisTime2Async(array $args = [])
 * @method \DragonJd\Result describeAnalysisThreshold2(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeAnalysisThreshold2Async(array $args = [])
 * @method \DragonJd\Result modifyAnalysisThreshold2(array $args = [])
 * @method \GuzzleHttp\Promise\Promise modifyAnalysisThreshold2Async(array $args = [])
 * @method \DragonJd\Result describeHotKeyResult2(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeHotKeyResult2Async(array $args = [])
 * @method \DragonJd\Result describeHotKeyDetail2(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeHotKeyDetail2Async(array $args = [])
 * @method \DragonJd\Result describeHotKeySummary(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeHotKeySummaryAsync(array $args = [])
 * @method \DragonJd\Result describeHotKeyDetail(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeHotKeyDetailAsync(array $args = [])
 * @method \DragonJd\Result restartProxy(array $args = [])
 * @method \GuzzleHttp\Promise\Promise restartProxyAsync(array $args = [])
 * @method \DragonJd\Result clientKill(array $args = [])
 * @method \GuzzleHttp\Promise\Promise clientKillAsync(array $args = [])
 * @method \DragonJd\Result describeInstanceClass(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeInstanceClassAsync(array $args = [])
 * @method \DragonJd\Result describeUserQuota(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeUserQuotaAsync(array $args = [])
 * @method \DragonJd\Result describeSpecConfig(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeSpecConfigAsync(array $args = [])
 */
class RedisClient extends JdCloudClient
{
    public function __construct(array $args)
    {
        $args['with_resolved'] = function (array $args) {
            $this->getHandlerList()->appendInit(
                PresignUrlMiddleware::wrap(
                    $this,
                    $args['endpoint_provider'],
                    [
                        'operations' => [
                        ],
                        'service' => 'redis',
                        'presign_param' => 'PresignedUrl',
                    ]
                ),
                'redis'
            );
        };

        parent::__construct($args);
    }
}